<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script data-th-src="@{/layui/layui.js}"></script>
    <link rel="stylesheet" data-th-href="@{/layui/css/layui.css}">
    <style>
        body{
            height: 100vh;
            display: flex;
            align-items: center;
        }
    </style>
</head>
<body>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-sm-offset4 layui-col-md-offset2 layui-col-md4 layui-col-sm3">
                <form data-th-action="@{/login}" method="post" target="_top">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名:</label>
                        <div class="layui-input-block">
                            <input type="text" name="account" class="layui-input" autocomplete="off" required>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码:</label>
                        <div class="layui-input-block">
                            <input type="password" name="password" class="layui-input" required>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <a class="layui-btn" data-th-href="@{/register}">注册</a>
                            <input class="layui-btn layui-btn-primary" type="submit"  lay-submit value="登录">
                            <input class="layui-btn " type="reset" value="重置">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script>
        layui.use("element",function(){})
    </script>
</body>
</html>